# def func(str_data):
#     count = 0
#     for i in str_data:
#         if i == 'a':
#             count += 1
#     print(count)

# func("adflkjadslkfjalds;fj")



# def func(data):
#     res = []
#     for item in data:
#         if item.startswith("a"):
#             res.append(item)
#     print(res)
    
# func(["xxx","武沛齐","xxx","alex"])

# v1 = ["xxx","武沛齐","xxx","alex"]
# func(v1)



# def func(*arges):
#     for item in arges:
#         print(item)

# func(11,22,33,"xxxx",True, [11,22,33],999)


# def func(**dt):
#     # 自动将数据打包整字典
#     # dt = {"a1":1,"b1":88,"cc":99}
#     print(dt)
    
# # 必须用关键字的形式传参
# func(a1=1,b1=88,cc=99)
# func(a1=1,b1=88,cc=99)
# func()


# def func():
#     for i in range(100):
#         return i
    
# res = func()

# print(res)


# v1 = lambda str : str.upper()
# print(v1("abc"))


data = []
str = 111
v2 = lambda str : data.append(str) 
v2(str)
print(data)